package com.t2two.example.projects;

/**
 * @description: 状态码
 * @company: 智蓝图汇
 * @author: bruce lan/00001
 * @date: 2021/5/26 22:39
 */
public enum StatusCode {
    OK(200, "请求正常"),
    NO_LOGIN(201, "未登录"),
    PARAM_ERROR(301, "参数错误"),
    DNA(302, "数据不存在"),
    PHONE_NOT_REGISTER(303, "手机号码未注册"),
    AUTHEN_FAILED(401, "用户名或密码错误"),
    TOKEN_ERROR(402, "token异常"),
    USER_EXISTS(403, "此用户名已存在"),
    OLD_PASSWORD_ERROR(405, "旧密码错误"),
    QR_INVALID(406, "二维码已被绑定，请联系xx"),
    OPENID_INVALID(407, "此微信账号已被绑定"),
    COMPANY_INFO_NO_EXIST(408,"公司抬头信息不存在"),
    FILL_COUNT_ZERO(409,"补卡次数不足，请联系管理员"),
    ERROR(500, "请求异常"),
    SMS_ERROR(501, "发送验证码出错"),
    DB_ERROR(503, "数据库异常"),
    NO_APPLICANT_PERMISSION(511, "您无权限查看报名人员, 请联系活动负责人获取"),
    NO_PERMISSION(512, "您无权限查看, 请联系管理员"),
    ACCOUNT_BLOCKED_ERROR(516, "输入密码错误次数过多，账号已被冻结"),
    DATA_EXISTS(517, "数据已存在"),
    NO_SET_FINANCIAL_PASSWORD(611, "未设置财务密码"),
    NO_SET_PERSONAL_FINANCIAL_PASSWORD(711, "未设置个人财务密码"),
    NO_FINANCIAL_PASSWORD(612, "未输入财务密码或财务密码错误"),
    NO_PERSONAL_FINANCIAL_PASSWORD(712, "未输入个人财务密码或财务密码错误"),
    ALREADY_SET_FINANCIAL_PASSWORD(613, "财务密码已经设置，请勿重复设置"),
    ALREADY_SET_PERSONAL_FINANCIAL_PASSWORD(713, "个人财务密码已经设置，请勿重复设置"),
    PROCESS_HAVE_DEPLOYED(701, "流程已经部署"),
    NOT_PRIZE(702, "很遗憾，未中奖"),
    OVER_CHANCE(703, "抽奖机会已经用完"),
    UPPER_CHANCE(704, "抽奖机会已达上限"),
    ALREADY_PRIZE(705, "您已中过奖了, 请填写寄件地址"),
    NOT_FOLLOW(706, "未关注公众号，点击关注按钮后进行抽奖"),
    ALREADY_PRIZE_ADDRESS(707, "您已中过奖"),
    SUMMARY_HAS_TALENT(801, "汇总表里已有相同的人才"),
    QR_OVERDUE(802, "汇总表过期"),
    QR_NOT_LOGIN(803, "还未登录"),
    COMPANY_EXISTS(901, "库中已存在该企业，请勿重复添加"),
    COMPANY_NO_BUS_INFO(902, "暂未查到该公司的工商信息，请确认是否继续添加"),
    Personnel_Exception_Attendance(903, "人事处理考勤异常数据时失败"),
    Not_Personnel_Exception_Attendance(904, "请联系管理员配置人事主管处理考勤异常"),

    Personnel_Reject_Exception_Attendance(905, "人事处理考勤异常驳回数据时失败"),
    EMAIL_SEND_ERROR(1201,"邮件发送异常");

    private int code;
    private String desc;
    StatusCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
